package com.un.ebs.inventory.domain;

import java.util.Date;

import com.un.ebs.inventory.enums.InventoryTypeEnum;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (InventoryLogExt)表实体类
 *
 * @author liubo
 * @since 2020-07-19 10:07:58
 */
@Data
@Component
@TableName("v_inventory_log_ext")
@SuppressWarnings("serial")
public class InventoryLogExt extends Model<InventoryLogExt> {


    @DbField(name = "id", length = 40, precision = 0)
    private String id;

    @DbField(name = "sku_id", length = 40, precision = 0)
    private String skuId;

    @DbField(name = "out_in_flag", length = -1, precision = 0)
    private InventoryTypeEnum outInFlag;

    @DbField(name = "curr_qty", length = 18, precision = 6)
    private Double currQty;

    @DbField(name = "pre_qty", length = 18, precision = 6)
    private Double preQty;

    @DbField(name = "after_qty", length = 18, precision = 6)
    private Double afterQty;

    @DbField(name = "curr_lock_by_out_qty", length = 18, precision = 6)
    private Double currLockByOutQty;

    @DbField(name = "curr_lock_by_in_qty", length = 18, precision = 6)
    private Double currLockByInQty;

    @DbField(name = "pre_lock_by_out_qty", length = 18, precision = 6)
    private Double preLockByOutQty;

    @DbField(name = "pre_lock_by_in_qty", length = 18, precision = 6)
    private Double preLockByInQty;

    @DbField(name = "after_lock_by_out_qty", length = 18, precision = 6)
    private Double afterLockByOutQty;

    @DbField(name = "after_lock_by_in_qty", length = 18, precision = 6)
    private Double afterLockByInQty;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;

    @DbField(name = "note_item_qty", length = 18, precision = 4)
    private Double noteItemQty;

    @DbField(name = "note_code", length = 100, precision = 0)
    private String noteCode;

    @DbField(name = "note_name", length = 100, precision = 0)
    private String noteName;

    @DbField(name = "note_id", length = 40, precision = 0)
    private String noteId;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_time", length = -1, precision = 0)
    private Date createTime;

    @DbField(name = "warehouse_id", length = 40, precision = 0)
    private String warehouseId;


}